package com.dstz.demo.rest.controller;

import com.dstz.base.api.aop.annotion.CatchErr;
import com.dstz.base.api.response.impl.ResultMsg;
import com.dstz.base.rest.BaseController;
import com.dstz.demo.core.manager.XmprojectdisplayManager;
import com.dstz.demo.core.model.Xmprojectdisplay;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


/**
 * 项目展示流程图 控制器类<br/>
 * @author  aschs
 * </pre>
 */
@RestController
@RequestMapping("/sys/xmprojectdisplay")
public class XmprojectdisplayController extends BaseController<Xmprojectdisplay>{
	@Resource
	XmprojectdisplayManager xmprojectdisplayManager;
	
	
	@Override
	protected String getModelDesc() {
		return "项目展示流程图";
	}

	@PostMapping("/getinfo/{id}")
	@CatchErr(write2response = true,value = "查询信息失败")
	public ResultMsg<List<Xmprojectdisplay>> findinfo(@PathVariable("id") String id){
		List<Xmprojectdisplay> list= xmprojectdisplayManager.findlist(id);
		return getSuccessResult(list);
	}
	   
}
